<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>Collapse</title>
    <link rel="stylesheet" href="bootstrap.min.css"/>
</head>
<body>
    <div class="container">
        <a href="#collapseExample" class="btn btn-primary" data-toggle="collapse">点击查看</a>
        <div class="collapse" id="collapseExample">
            <div class="well">Hello</div>
        </div>
        <br/>
        <br/>
        <div class="panel-group" id="accordion" role="tablist">
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingOne">
                    <h4 class="panel-title">
                        <a href="#collapseOne" data-toggle="collapse" data-parent="#accordion">item1</a>
                    </h4>
                </div>
                <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel">
                    <div class="panel-body">
                        欢迎来到doraCMS11
                        欢迎来到doraCMS11
                        欢迎来到doraCMS11
                        欢迎来到doraCMS11
                    </div>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingTwo">
                    <h4 class="panel-title">
                        <a href="#collapseTwo" data-toggle="collapse" data-parent="#accordion">item1</a>
                    </h4>
                </div>
                <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel">
                    <div class="panel-body">
                        欢迎来到doraCMS22
                        欢迎来到doraCMS22
                        欢迎来到doraCMS22
                        欢迎来到doraCMS22
                    </div>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingThree">
                    <h4 class="panel-title">
                        <a href="#collapseThree" data-toggle="collapse" data-parent="#accordion">item1</a>
                    </h4>
                </div>
                <div id="collapseThree" class="panel-collapse collapse" role="tabpanel">
                    <div class="panel-body">
                        欢迎来到doraCMS33
                        欢迎来到doraCMS33
                        欢迎来到doraCMS33
                        欢迎来到doraCMS33
                    </div>
                </div>
            </div>
        </div>

    </div>
    <script src="jquery-1.11.1.js"></script>
    <script src="bootstrap.min.js"></script>
    <script>
        $("#accordion").on('hidden.bs.collapse',function(e){
            alert("hello");
        })
    </script>
</body>
</html>